<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"  %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<form name="queryForm" action="query.action" method="post">
	ID：<input id="id" name="user.id" value="${user.id }" />
	姓名：<input id="name" name="user.name" value="${user.name }" />
	年龄：<input id="age" name="user.age" value="${user.age }" />
	地址：<input id="address" name="user.address" value="${user.address }" />
	<input type="submit" value="查询"/>
</form>
<c:forEach  var="item" items="${empList}" >
	${item.id }  ${item.name}   ${item.age }  ${item.address }<div></div>
</c:forEach>

<form name="deleteForm" action="delete.action" method="post">
	ID：<input id="id" name="user.id" value="${user.id }"/>
	姓名：<input id="name" name="user.name" value="${user.name }"/>
	<input type="submit" value="删除"/>
</form>
<form name="addForm" action="save.action" method="post">
	姓名：<input id="name" name="user.name" value="${user.name }"/>
	年龄：<input id="age" name="user.age" value="${user.age }"/>
	地址：<input id="address" name="user.address" value="${user.address }"/>
	<input type="submit" value="新增一条"/>
	<a href="batchAdd.action">批量增加</a>
</form>

</body>
</html>